
import router from './index';
const childrenPath = ['/appVue', '/appVue1'];
router.beforeEach((to, from, next) => {
  if (to.name) {
    // 有 name 属性，说明是主应用的路由
    next();
  }
  if (childrenPath.some((item) => to.path.includes(item))) {
    next();
    console.log(123)
  }
  next({ name: '404' });
});